<template>
  <el-carousel indicator-position="outside"
               height="350px"
               type="card">
    <el-carousel-item v-for="item in pirList"
                      :key="item.index">
      <img :src=item.photo />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: 'CarouselCom',
  props: {
    pirList: Array
  }
}
</script>

<style lang="stylus" scoped>
.el-carousel__container {
  position: relative;
  height: 500px;
}

img {
  background-size: cover;
  width: 100%;
  height: 100%;
}
</style>
